if [[ ! -d ~/.config ]]; then
	mkdir ~/.config
fi
if [[ ! -d ~/.local/share ]]; then
	mkdir -p ~/.local/share
fi
if [[ ! -d ~/usr ]]; then
	mkdir -p ~/usr
fi

tar xf ./xdg/local.tar.gz
tar xf ./xdg/config.tar.gz
mv .config/nvim ~/.config
mv .local/share/nvim ~/.local/share

tar xf ./executable/nvim-linux64-0.9.5.tar.gz
mv nvim-linux64/* ~/usr

echo "the nvim has been installed into ~/usr/bin"
echo "add it into your PATH"

